package com.acetech.admin.web.utils;

public enum ErrorCode {

    SUCCESS(200, "成功"),
    REDIRECT_PERM(301, "重定向"),
    REDIRECT_TEMP(302, "重定向"),
    PARAMS_ERROR(400, "参数错误"),
    NOT_LOGIN(410, "登录失效"),
    BUSI_ERROR(420, "业务错误"),
    UNKNOWN_ERROR(421, "未知错误"),
    SYS_ERROR(500, "系统异常，请联系管理员"),
    NET_ERROR(600, "网络异常，请稍候重试"),


    NEED_GRAPH_CODE(40010, "请输入图形验证码"),
    ERROR_GRAPH_CODE(40011, "图形验证码过期或错误"),
    ;

    public final int code;
    public final String msg;

    private ErrorCode(int code, String msg) {
        this.code = code;
        this.msg = msg;
    }
}
